package com.dsr.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * (Manager)实体类
 *
 * @author dsr
 * @since 2020-09-26 10:20:57
 */

@Getter
@Setter
@ApiModel("(Manager)实体类")
public class Manager implements Serializable {
    private static final long serialVersionUID = -51756906761317100L;
    @Id
    private String id;

    private Date createDate;

    private Integer del;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date loginDate;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    private String realName;

    private String userName;

    private String roleId;

}